#!/usr/bin/env ruby
#-*- coding:utf-8 -*-

require "net/pop"

if caller.length == 0
  #pop = Net::POP3.new 'pop.163.com'
  pop = Net::POP3.new 'pop.ym.163.com'
  pop.start 'username', 'passwd'
  pop.mails
end
